function windowclose(id,panel){
	if (document.getElementById(id)==null){
		Richfaces.hideModalPanel(panel);
	};
}